package com.dong.bridgeMode.channel;

import com.dong.bridgeMode.mode.IPayMode;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.extern.slf4j.Slf4j;

import java.math.BigDecimal;

/**
 * @author DongJiaQi
 * @create 2023/1/3 14:23
 * @Description: ⽀付类型桥接抽象类
 */
@Slf4j
@Data
@AllArgsConstructor
@NoArgsConstructor
public abstract class Pay {
    protected IPayMode payMode;

    /**
     * 转账接口
     * @param uId 用户id
     * @param tradeId
     * @param amount
     * @return
     */
    public abstract String transfer(String uId, String tradeId, BigDecimal  amount);

}
